package cn.kgc;

import java.util.*;

public class homework02 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		/**
		 * 数组查找操作：定义一个长度为10 的一维字符串数组，在每 一个元素存放一个单词；然后运行时从命令行输入一个单词，程
		 * 序判断数组是否包含有这个单词，包含这个单词就打印出“Yes”， 不包含就打印出“No”。
		 */
		String[] number = new String[10];
		number[0] = "one";
		number[1] = "two";
		number[2] = "three";
		number[3] = "fore";
		number[4] = "five";
		number[5] = "six";
		number[6] = "seven";
		number[7] = "eight";
		number[8] = "nine";
		number[9] = "ten";
		int count = 0;
		System.out.println("请输入一个单词：");
		String i = input.next();
		for (int j = 0; j < number.length; j++) {
			if (number[j].equalsIgnoreCase(i)) {
				count++;
			}
		}
		if (count != 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");

		}
	}

}
